<h3>Controllers List</h3> 
<?php
if(!empty($this->moduleData['controllers'])) {
	echo '<ul>';
	foreach($this->moduleData['controllers'] as $num => $controller) {
		echo '<li><a href="'.$this->baseURL().'/apidesigner/'.$this->module['name'].'/'.$controller['name'].'/">'.$controller['name'].'</a> - '.$controller['description'].'</li>';
	}
	echo '</ul>';
} else echo 'No controller defined so far';

?>

<h3>Create new API controller</h3>
<form action="<?php echo $this->baseURL() ?>/apidesigner/index/createnewcontroller/" method="post">
<input type="hidden" name="moduleName" value="<?php echo $this->module['name'] ?>" />
Controller Name: <input type="text" name="controllerName" /><br />
Controller Definition: <textarea name="controllerDescription" cols="40" rows="4"></textarea><br />
<button type="submit">Create new controller</button>
</form>

